package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Created on 2017/10/12.
 * @author 朱坤涛
 * 提现账户
 */
@Entity(value = "PearlAccount",noClassnameStored = true)
public class PearlAccount extends BaseMongoEntity{
    private Long memberId;//用户ID
    private String bank;//开户银行（例如：华夏银行，支付宝）
    private Integer type; //类型 1，支付宝 2，银行卡
    private String name;//账号姓名
    private String account;//账号
    private String picture;//银行图片
    private Integer isDefault;//是否默认账户，新增时是默认
    private String subBankName;//开户支行
    private String mobile;//手机号

    public PearlAccount(){}

    public PearlAccount(Long memberId,String bank, String name, String account,Integer isDefault,String picture,Integer type,String mobile ){
        this.bank = bank;
        this.name = name;
        this.account = account;
        this.picture = picture;
        this.isDefault = isDefault;
        this.memberId = memberId;
        this.type = type;
        this.mobile = mobile;
    }
    public PearlAccount( String bank, String name, String account,String picture,Integer type,String mobile) {
        this.bank = bank;
        this.name = name;
        this.account = account;
        this.picture = picture;
        this.type = type;
        this.mobile = mobile;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getType() {return type;}

    public void setType(Integer type) {this.type = type;}

    public String getSubBankName() {return subBankName;}

    public void setSubBankName(String subBankName) {this.subBankName = subBankName;}

    public String getMobile() {return mobile;}

    public void setMobile(String mobile) {this.mobile = mobile;}
}
